package grib2handler.grib.ftp;

import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.pool.impl.GenericObjectPool.Config;

public class FTPPool extends Pool<FTPClient>{
	private boolean passiveMode = true;
	public FTPPool(Config poolConfig,String host,int port,String user,String password,String passiveModeConf){
		super(poolConfig, new FTPPoolableObjectFactory(host, port, user, password, passiveModeConf));
		this.passiveMode = Boolean.parseBoolean(passiveModeConf);
	}
	
	public boolean isPassiveMode() {
		return passiveMode;
	}
}